home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MPW Related / MPW Interfaces / PInterfaces / SegLoad.p < prev    next >
Encoding:
Text File  |  1993-09-17  |  1.2 KB  |  62 lines  |  [TEXT/MPS ]

  1. {
  2.     File:        SegLoad.p
  3.  
  4.     Copyright:    © 1983-1993 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Version:    System 7.1 for ETO #11
  8.     Created:    Tuesday, March 30, 1993 18:00
  9.  
  10. }
  11.  
  12. {$IFC UNDEFINED UsingIncludes}
  13. {$SETC UsingIncludes := 0}
  14. {$ENDC}
  15.  
  16. {$IFC NOT UsingIncludes}
  17.     UNIT SegLoad;
  18.     INTERFACE
  19. {$ENDC}
  20.  
  21. {$IFC UNDEFINED UsingSegLoad}
  22. {$SETC UsingSegLoad := 1}
  23.  
  24. {$I+}
  25. {$SETC SegLoadIncludes := UsingIncludes}
  26. {$SETC UsingIncludes := 1}
  27. {$IFC UNDEFINED UsingTypes}
  28. {$I $$Shell(PInterfaces)Types.p}
  29. {$ENDC}
  30. {$SETC UsingIncludes := SegLoadIncludes}
  31.  
  32. CONST
  33. appOpen = 0;            {Open the Document (s)}
  34. appPrint = 1;           {Print the Document (s)}
  35.  
  36. TYPE
  37. AppFile = RECORD
  38.     vRefNum: INTEGER;
  39.     fType: OSType;
  40.     versNum: INTEGER;   {versNum in high byte}
  41.     fName: Str255;
  42.     END;
  43.  
  44.  
  45. PROCEDURE UnloadSeg(routineAddr: Ptr);
  46.     INLINE $A9F1;
  47. PROCEDURE ExitToShell;
  48.     INLINE $A9F4;
  49. PROCEDURE GetAppParms(VAR apName: Str255;VAR apRefNum: INTEGER;VAR apParam: Handle);
  50.     INLINE $A9F5;
  51. PROCEDURE CountAppFiles(VAR message: INTEGER;VAR count: INTEGER);
  52. PROCEDURE GetAppFiles(index: INTEGER;VAR theFile: AppFile);
  53. PROCEDURE ClrAppFiles(index: INTEGER);
  54.  
  55.  
  56. {$ENDC}    { UsingSegLoad }
  57.  
  58. {$IFC NOT UsingIncludes}
  59.     END.
  60. {$ENDC}
  61.  
  62.